const app = getApp()

Component({
  properties: {},
  data: {
    theme: app.globalData.theme,
    background: []
  //   background: [
  //     'https://sys.zhibenguyi.com//res/images/service//1.png',
  //     'https://sys.zhibenguyi.com//res/images/service//2.png',
  //     'https://sys.zhibenguyi.com//res/images/service//3.png',
  //     'https://sys.zhibenguyi.com//res/images/service//4.png',
  //     'https://sys.zhibenguyi.com//res/images/service//5.png'
  // ]
  },
  pageLifetimes: {
    show () {},
    hide () {}
  },
  ready () {
    this.getList()
  },
  methods: {
    async getList () {
      const res = await app.http.get('/api/v1/getIndexBanner')
      if (res.code == 0) {
        this.setData({ background: res.data })
      }
    },
    handleTap () {

    }
  }
})
